package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MerchantActivitiesMapper;
import com.ruoyi.system.domain.MerchantActivities;
import com.ruoyi.system.service.IMerchantActivitiesService;

/**
 * 活动管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-22
 */
@Service
public class MerchantActivitiesServiceImpl implements IMerchantActivitiesService 
{
    @Autowired
    private MerchantActivitiesMapper merchantActivitiesMapper;

    /**
     * 查询活动管理
     * 
     * @param id 活动管理主键
     * @return 活动管理
     */
    @Override
    public MerchantActivities selectMerchantActivitiesById(Long id)
    {
        return merchantActivitiesMapper.selectMerchantActivitiesById(id);
    }

    /**
     * 查询活动管理列表
     * 
     * @param merchantActivities 活动管理
     * @return 活动管理
     */
    @Override
    public List<MerchantActivities> selectMerchantActivitiesList(MerchantActivities merchantActivities)
    {
        return merchantActivitiesMapper.selectMerchantActivitiesList(merchantActivities);
    }

    /**
     * 新增活动管理
     * 
     * @param merchantActivities 活动管理
     * @return 结果
     */
    @Override
    public int insertMerchantActivities(MerchantActivities merchantActivities)
    {
        return merchantActivitiesMapper.insertMerchantActivities(merchantActivities);
    }

    /**
     * 修改活动管理
     * 
     * @param merchantActivities 活动管理
     * @return 结果
     */
    @Override
    public int updateMerchantActivities(MerchantActivities merchantActivities)
    {
        return merchantActivitiesMapper.updateMerchantActivities(merchantActivities);
    }

    /**
     * 批量删除活动管理
     * 
     * @param ids 需要删除的活动管理主键
     * @return 结果
     */
    @Override
    public int deleteMerchantActivitiesByIds(Long[] ids)
    {
        return merchantActivitiesMapper.deleteMerchantActivitiesByIds(ids);
    }

    /**
     * 删除活动管理信息
     * 
     * @param id 活动管理主键
     * @return 结果
     */
    @Override
    public int deleteMerchantActivitiesById(Long id)
    {
        return merchantActivitiesMapper.deleteMerchantActivitiesById(id);
    }
}
